package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * @author ：zfr
 * @date ：2021/11/3 12:32
 */
@FieldTypeAnnotation(tableName = "t_l_ck_fishpond_item", desc = "鱼塘道具日志", autoSave = true, uploadCk = true)
public class LogFishPondItem extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "道具id")
    private int itemId;
    @FieldTypeAnnotation(desc = "是否获取")
    private boolean isGet;
    @FieldTypeAnnotation(desc = "数量")
    private long num;
    @FieldTypeAnnotation(desc = "当前数量")
    private long curNum;
    @FieldTypeAnnotation(desc = "增加的积分")
    private long addScore;
    @FieldTypeAnnotation(desc = "获取方式")
    private int way;

    public LogFishPondItem(long userId, int itemId, boolean isGet, long num, long curNum, long addScore, int way) {
        this.userId = userId;
        this.itemId = itemId;
        this.isGet = isGet;
        this.num = num;
        this.curNum = curNum;
        this.addScore = addScore;
        this.way = way;
    }

    public long getUserId() {
        return userId;
    }
}
